home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / src / adoc_src.lha / adoc-0.17 / DMakefile < prev    next >
Encoding:
Makefile  |  1995-03-21  |  2.1 KB  |  81 lines

  1. # ADOC -*- Makefile -*- for Matt Dillon's nice DICE (Amiga)
  2. #
  3. # (c)Copyright 1995 by Tobias Ferber.
  4. #
  5. # This file is part of ADOC.
  6. #
  7. # ADOC is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published
  9. # by the Free Software Foundation; either version 1 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # ADOC is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with ADOC; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. CC       = dcc
  22. CFLAGS   = -3.1 -s
  23. FLEX     = flex -8 -f
  24. TEX      = virtex &tex
  25. TEXINDEX = texindex
  26. RM       = delete quiet
  27. CP       = copy quiet
  28. TAR      = tar
  29.  
  30. # -DDEBUG needs debug.c smartmem.c and timer.c
  31. #CFLAGS= -3.1 -s -DDEBUG
  32. #srcs = main.c args.c lex.yy.c libfun.c gencode.c strarg.c strexpand.c mactab.c flist.c debug.c smartmem.c timer.c
  33.  
  34. srcs = main.c args.c lex.yy.c libfun.c gencode.c strarg.c strexpand.c mactab.c flist.c
  35. objs = $(srcs:*.c:*.o)
  36. prog = adoc
  37.  
  38. all: $(prog)
  39.  
  40. $(prog): $(objs)
  41.     $(CC) $(CFLAGS) -o %(left) $(objs)
  42.  
  43. lex.yy.c: adoc.yy
  44.     $(FLEX) adoc.yy
  45.  
  46. # flex option `-f' makes need of dcc's -mC -mD options
  47.  
  48. $(objs): $(srcs)
  49.     $(CC) $(CFLAGS) -mD -mC -c -o %(left) %(right)
  50.  
  51. #
  52.  
  53. install: all
  54.     $(CP) $(prog) devel:bin/
  55.  
  56. dist:
  57.         $(TAR) cf $(prog).tar `cpdist -n`
  58.  
  59. clean:
  60.     $(RM) adoc #?.o lex.yy.c #?.(log|toc|aux|cp|fn|vr|ky|pg|cps|fns|vrs|kys|pgs|tp|log)
  61.  
  62. #
  63.  
  64. docs: $(prog).dvi $(prog).guide
  65.  
  66. # create the AmigaGuide file and fix some bugs in `makeinfo --amiga'
  67.  
  68. $(prog).guide: $(prog).texi
  69.     makeinfo --amiga $(prog).texi
  70.     cvt -s -fpatchguide -o%s $(prog).guide
  71.  
  72. $(prog).dvi: $(prog).texi
  73.     $(TEX) $(prog).texi
  74.     $(TEXINDEX) $(prog).cp
  75.     $(TEXINDEX) $(prog).fn
  76.     $(TEXINDEX) $(prog).vr
  77.     $(TEXINDEX) $(prog).ky
  78.     $(TEXINDEX) $(prog).pg
  79.     $(TEX) $(prog).texi
  80.     $(TEX) $(prog).texi
  81.